package com.lcf.demo;

import com.lcf.domain.Circle;
import com.lcf.domain.Cylinder;

public class OopDemo6 {
    public static void main(String[] args) {
        // 创建圆对象
        Circle circle = new Circle(5);
        circle.show();

        // 创建圆柱体对象
        Cylinder cylinder = new Cylinder(5, 10);
        cylinder.show();
        cylinder.showVolume();
    }
}
